
"use strict";

const Service = require("egg").Service;
class HomeService extends Service {
  // 获取oss文件上传token

  async getUerTotal() {
    try {
      const { Op } = this.app.Sequelize;
      // 获取用户总数
      const userCount = await this.ctx.model.SysUser.count();
      return this.ctx.helper.ormSuccess(userCount);
    } catch (err) {
      return this.ctx.helper.ormError(err);
    }
  }

}

module.exports = HomeService;
